package com.jt.Controller;

import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@PropertySource(value = "classpath:/msg.properties",encoding = "UTF-8")
public class HelloController {
//    @Value("${msg}")
//    private String msg;

    @GetMapping("/hello")
    public String hello(){
//        User user2 = new User();
//        user2.setId(50).setName("邓总");
        return "你好";
    }
}
